package com.example.telephonelib;

import java.util.Objects;

public class CustomCellInfo {

  private String cellInfoType1;
  private String cellInfoType2;
  private int mcc;
  private int mnc;
  private int cid;
  private int lac;
  private int signalStrength;

  public String getCellInfoType1() {
    return cellInfoType1;
  }

  public void setCellInfoType1(String cellInfoType1) {
    this.cellInfoType1 = cellInfoType1;
  }

  public String getCellInfoType2() {
    return cellInfoType2;
  }

  public void setCellInfoType2(String cellInfoType2) {
    this.cellInfoType2 = cellInfoType2;
  }

  public int getMcc() {
    return mcc;
  }

  public void setMcc(int mcc) {
    this.mcc = mcc;
  }

  public int getMnc() {
    return mnc;
  }

  public void setMnc(int mnc) {
    this.mnc = mnc;
  }

  public int getCid() {
    return cid;
  }

  public void setCid(int cid) {
    this.cid = cid;
  }

  public int getLac() {
    return lac;
  }

  public void setLac(int lac) {
    this.lac = lac;
  }

  public int getSignalStrength() {
    return signalStrength;
  }

  public void setSignalStrength(int signalStrength) {
    this.signalStrength = signalStrength;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    CustomCellInfo that = (CustomCellInfo) o;
    return mcc == that.mcc &&
        mnc == that.mnc &&
        cid == that.cid &&
        lac == that.lac &&
        signalStrength == that.signalStrength &&
        Objects.equals(cellInfoType1, that.cellInfoType1) &&
        Objects.equals(cellInfoType2, that.cellInfoType2);
  }

  @Override
  public int hashCode() {
    return Objects.hash(cellInfoType1, cellInfoType2, mcc, mnc, cid, lac, signalStrength);
  }

  @Override
  public String toString() {
    return "CustomCellInfo{" +
        "cellInfoType1='" + cellInfoType1 + '\'' +
        ", cellInfoType2='" + cellInfoType2 + '\'' +
        ", mcc=" + mcc +
        ", mnc=" + mnc +
        ", cid=" + cid +
        ", lac=" + lac +
        ", signalStrength=" + signalStrength +
        '}';
  }
}
